package com.usian.feign;

import com.usian.pojo.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author chen
 * @date 2021/1/27 - 22:17 - 星期三
 * @project usian_parent
 * @package com.usian.feign
 * @by GGbomd猪猪侠
 */
@Component
@FeignClient("usian-order-service")
public interface OrderServiceFeign {
    /**
     * 提交叮当创建订单
     * @return
     */
    @RequestMapping("/insertOrder")
    String insertOrder(@RequestBody OrderInfo orderInfo);
}
